package com.bankcoder.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import org.apache.poi.ss.usermodel.FillPatternType;

import static org.apache.poi.ss.usermodel.HorizontalAlignment.CENTER;

/***
 * 检查结果记录文件实体类
 */
// 头背景设置成红色 IndexedColors.RED.getIndex()
@HeadStyle(fillPatternType = FillPatternType.SOLID_FOREGROUND, fillForegroundColor = 40,horizontalAlignment = CENTER)
// 头字体设置成20
@HeadFontStyle(fontHeightInPoints = 10,fontName = "微软雅黑",color = 64)
public class CheckResultEntity {
    @ColumnWidth(8)
    @ExcelProperty(index=0,value={"不符合问题记录","序号"})
    private String id;
    @ColumnWidth(9)
    @ExcelProperty(index=1,value={"不符合问题记录","组名"})
    private String groupName;
    @ColumnWidth(25)
    @ExcelProperty(index=2,value={"不符合问题记录","阶段"})
    private String phase;
    @ColumnWidth(15)
    @ExcelProperty(index=3,value={"不符合问题记录","程序码"})
    private String processCode;
    @ColumnWidth(24)
    @ExcelProperty(index=4,value={"不符合问题记录","交易名称"})
    private String tranDesc;
    @ColumnWidth(15)
    @ExcelProperty(index=5,value={"不符合问题记录","检查文档"})
    private String checkFile;
    @ColumnWidth(48)
    @ExcelProperty(index=6,value={"不符合问题记录","问题描述"})
    private String problemDesc;
    @ColumnWidth(12)
    @ExcelProperty(index=7,value={"不符合问题记录","问题类型"})
    private String problemType;
    @ColumnWidth(7)
    @ExcelProperty(index=8,value={"不符合问题记录","责任人"})
    private String responser;
    @ColumnWidth(10)
    @ExcelProperty(index=9,value={"不符合问题记录","检查日期"})
    private String checkDate;
    @ColumnWidth(9)
    @ExcelProperty(index=10,value={"不符合问题记录","状态"})
    private String status;
    @ColumnWidth(9)
    @ExcelProperty(index=11,value={"不符合问题记录","是否接受"})
    private String isAccepted;
    @ColumnWidth(24)
    @ExcelProperty(index=12,value={"不符合问题记录","拒绝原因"})
    private String refuseReason;
    @ColumnWidth(12)
    @ExcelProperty(index=13,value={"不符合问题记录","计划解决时间"})
    private String planDate;
    @ColumnWidth(12)
    @ExcelProperty(index=14,value={"不符合问题记录","实际解决措施"})
    private String solution;
    @ColumnWidth(12)
    @ExcelProperty(index=15,value={"不符合问题记录","实际解决时间"})
    private String solutionDate;
    @ColumnWidth(9)
    @ExcelProperty(index=16,value={"不符合问题记录","解决时长"})
    private String useTime;

    public void setId(String id) {
        this.id = id;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public void setPhase(String phase) {
        this.phase = phase;
    }

    public void setProcessCode(String processCode) {
        this.processCode = processCode;
    }

    public void setTranDesc(String tranDesc) {
        this.tranDesc = tranDesc;
    }

    public void setCheckFile(String checkFile) {
        this.checkFile = checkFile;
    }

    public void setProblemDesc(String problemDesc) {
        this.problemDesc = problemDesc;
    }

    public void setProblemType(String problemType) {
        this.problemType = problemType;
    }

    public void setResponser(String responser) {
        this.responser = responser;
    }

    public void setCheckDate(String checkDate) {
        this.checkDate = checkDate;
    }

    public void setIsAccepted(String isAccepted) {
        this.isAccepted = isAccepted;
    }

    public void setRefuseReason(String refuseReason) {
        this.refuseReason = refuseReason;
    }


    public void setPlanDate(String planDate) {
        this.planDate = planDate;
    }

    public void setSolution(String solution) {
        this.solution = solution;
    }

    public void setSolutionDate(String solutionDate) {
        this.solutionDate = solutionDate;
    }

    public void setUseTime(String useTime) {
        this.useTime = useTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getId() {
        return id;
    }

    public String getGroupName() {
        return groupName;
    }

    public String getPhase() {
        return phase;
    }

    public String getProcessCode() {
        return processCode;
    }

    public String getTranDesc() {
        return tranDesc;
    }

    public String getCheckFile() {
        return checkFile;
    }

    public String getProblemDesc() {
        return problemDesc;
    }

    public String getProblemType() {
        return problemType;
    }

    public String getResponser() {
        return responser;
    }

    public String getCheckDate() {
        return checkDate;
    }

    public String getIsAccepted() {
        return isAccepted;
    }

    public String getRefuseReason() {
        return refuseReason;
    }

    public String getPlanDate() {
        return planDate;
    }

    public String getSolution() {
        return solution;
    }

    public String getSolutionDate() {
        return solutionDate;
    }

    public String getUseTime() {
        return useTime;
    }

    @Override
    public String toString() {
        return "CheckResultEntity{" +
                "id='" + id + '\'' +
                ", groupName='" + groupName + '\'' +
                ", phase='" + phase + '\'' +
                ", processCode='" + processCode + '\'' +
                ", tranDesc='" + tranDesc + '\'' +
                ", checkFile='" + checkFile + '\'' +
                ", problemDesc='" + problemDesc + '\'' +
                ", problemType='" + problemType + '\'' +
                ", responser='" + responser + '\'' +
                ", checkDate='" + checkDate + '\'' +
                ", isAccepted='" + isAccepted + '\'' +
                ", refuseReason='" + refuseReason + '\'' +
                ", planDate='" + planDate + '\'' +
                ", solution='" + solution + '\'' +
                ", solutionDate='" + solutionDate + '\'' +
                ", useTime='" + useTime + '\'' +
                '}';
    }
}
